package com.kelvin.paopao.injector.modules;

import com.kelvin.paopao.injector.PerActivity;
import com.kelvin.paopao.module.base.IBasePresenter;
import com.kelvin.paopao.module.login.login.ILoginPresenter;
import com.kelvin.paopao.module.login.login.LoginActivity;
import com.kelvin.paopao.module.login.login.LoginPresenter;

import dagger.Module;
import dagger.Provides;

/**
 * Created by MCK on 2017/5/9.
 */

@Module
public class LoginModule {
    private LoginActivity mView;

    public LoginModule(LoginActivity view){
        this.mView=view;
    }

    @PerActivity
    @Provides
    public ILoginPresenter providePresenter(){
        return new LoginPresenter(mView);
    }
}
